|
The user can customize fonts, colors, positions of links in the margins, and many other things! This is done through custom Cascading Style Sheets stored in subpages of the user's "User" page. E.g. To create your own CSS modifications for the skin you are presently using, create a page at Special:Mypage/skin.css containing the CSS you want to use (to apply your changes regardless which skin you are using, put them in Special:Mypage/common.css instead). For how to hide particular messages, see WP:CSSHIDE. == General == For each user-definable style, a skin is first selected, and a corresponding Cascading Style Sheet (CSS). For each skin, the user can make various choices regarding fonts, colors, positions of links in the margin, etc. CSS is specified with reference to selectors (): HTML elements, classes and id's specified in the HTML code. Accordingly, what the possibilities are for each skin can be seen by looking at the HTML source code of a page, in particular looking at these classes and id's: the more there are, the more versatility there is. There is CSS in the MediaWiki software itself, and Wikipedia overrides this using the following pages: *Cologne Blue MediaWiki:Cologneblue.css *Modern - MediaWiki:Modern.css *Monobook - MediaWiki:Monobook.css *Vector - MediaWiki:Vector.css Site-wide CSS is in MediaWiki:Common.css You can override these for yourself using user styles. To make changes that apply regardless of your current skin, change your common.css. To make changes that affect your current skin, change your skin.css. To make changes that affect all Wikimedia projects, you can login to Meta and change your global.css. Enter some CSS into that page. Preview of CSS works in a special way: it allows viewing of the margins of the page (not the contents) on the basis of the style info in the page, provided that the skin used is the skin for which the page applies. This has limitations. E.g., one can preview how links in the margin will look, but these may not be of all the types one would want to check. After saving, while still on the page or while on any other page, do a forced reload (shift-reload/ctrl-f5) to get the new files. To import CSS from a user subpage, use the command in your common.js: 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「Help:User style」の詳細全文を読む スポンサード リンク
|